{literal}
<script type="text/javascript">
	var currenttime = '{/literal}{$currTime}{literal}' 
	var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")	
	
	function padlength(what){
		var output=(what.toString().length==1)? "0"+what : what
		return output
	}	
	
	function displaytime(){
		var currentTime = new Date();
		var machinetime = padlength(currentTime.getHours())+":"+padlength(currentTime.getMinutes())+":"+padlength(currentTime.getSeconds())
		document.getElementById("localtime").innerHTML=machinetime
	} 
	window.onload=function(){
		setInterval("displaytime()", 500)
	}
</script>
{/literal}
</head>
<body>
<div id="outerwrapper">
  <div id="wrapper">
    <div class="header">
      <div class="logo"><a href="{$siteroot}/admin/home.php">
      {if $imageDetails neq ''}
      	<img src="{$siteroot}/includes/image.php?width=280&amp;height=42&amp;image={$siteroot}/uploads/logo/{$imageDetails}"/>
      {else}
      	 <img src="{$siteroot}/templates/default/images/logo.png" />
      {/if}
      </a>
      </div>
      <div class="he_right">
        <div class="bt_logout"><a href="{$siteroot}/admin/logout.php"><img src="{$siteroot}/templates/admin/img/bt_logout.png" width="88" height="25" /></a></div>
        <div class="date">
        <span>{$smarty.now|date_format:"%B %e, %Y"}</span>
       	Local Time:<span id="localtime"></span>
        </div>
      </div>
      <div class="clear"></div>
      <div class="home_box">
        <div class="toolbox_dropdown_wrap">
          <div id="ddtopmenubar"  class="toolbox_dropdown mattblackmenu">
            <ul>
              <li><a href="#url" rel="ddsubmenu1">Toolbox</a></li>
            </ul>
          </div>
          <script type="text/javascript">
ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
</script>
        </div>
        <div class="top_navbox">
          <div class="home_icon"><a href="{$siteroot}/admin/home.php">&nbsp;</a></div>
          <div class="user_welcometext">
          <span>Welcome {$smarty.session.admin_firstname}</span> You are logged in as {if $smarty.session.admin_type eq '1'}Admin{else}Sub-Admin{/if}
          	
          </div>
          <div class="clear"></div>
        </div>
      </div>
      <ul id="ddsubmenu1" class="ddsubmenustyle">
      <li><a href="{$siteroot}/admin/home.php?q=dashboard" class="active">Dashboard</a></li>
        <li><a href="{$siteroot}/admin/home.php?q=changeusername">Change Username</a></li>
        <li><a href="{$siteroot}/admin/home.php?q=changepassword">Change Password</a></li>
        <li><a href="{$siteroot}/admin/home.php?q=changeemail">Change Email Address</a></li>
        <li><a href="{$siteroot}/admin/home.php?q=editprofile">Edit Profile</a></li>
        <li><a href="{$siteroot}/admin/home.php?q=helptext">Manage Help Text</a></li>
        
        <!-- modules settings will available for techmodi admin user-->
        {if $smarty.session.admin_id eq '2'}
        <li><a href="{$siteroot}/admin/home.php?q=defaultsettings">Default Settings</a></li>
        <li><a href="{$siteroot}/admin/home.php?q=settings">Modules Settings</a></li>
        {/if}
      </ul>
    </div>